package com.zygh.policeasset.service;

import com.zygh.policeasset.mapper.TaskSourceMapper;
import com.zygh.policeasset.pojo.TaskSource;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/service/TaskSourceService.class */
public class TaskSourceService {
    @Autowired
    TaskSourceMapper taskSourceMapper;

    public List<TaskSource> queryAll() {
        return this.taskSourceMapper.queryAll();
    }

    public Integer update(TaskSource taskSource) {
        return Integer.valueOf(this.taskSourceMapper.update(taskSource));
    }

    public Integer add(String name) {
        return Integer.valueOf(this.taskSourceMapper.insert(name));
    }

    public Integer delete(Integer id) {
        return Integer.valueOf(this.taskSourceMapper.deleteById(id));
    }
}